Wiki

Clone wiki

ProxyKiller / Memory Structure

ProxyKiller memory structure


Heres a brief layout of the memory ProxyKiller uses

ProxyKiller holds 9 open handles at all times, these are:

  • ProxyRules [344 bytes]
  • ProxyCache [344 bytes]
  • ProxyLogger [344 bytes]
  • ProxyConfig [344 bytes]
    • Config variables (StringMap) [344+ bytes]
    • Configured service (ProxyService) [344 bytes]
      • Params (ProxyHTTPParams) [344+ bytes]
      • Headers (ProxyHTTPHeaders) [344+ bytes]
      • Response (ProxyServiceResponse) [344+ bytes]

In total ProxyKiller consumes 4096 bytes of memory on an average.


In addition to the above handles, there can also be these handles open at all times, depending on your configuration:

  • IDatabase (ProxyRulesMySQL)
  • IDatabase (ProxyCacheMySQL)

During runtime, there can be these handles open, these are generally short-lived:

  • 1 ProxyUser instance per client being checked
  • 1 ProxyHTTP instance per client if a request is made

Updated